package lyo.levelup.hash.hometasklow;

import java.util.HashMap;

public class Book {
    private int count;
    private HashMap <String, String> hm1;
    private HashMap <Integer, String> hm2;
    String key;
    public Book(String strKey, HashMap <String, String> hm1)
    {
        this.key = strKey;
        this.hm1 = hm1;
    }
    public Book (Integer intKey, HashMap <Integer, String> hm2)
    {
        this.key = intKey.toString();
        this.hm2 = hm2;
    }
    public void searchByIdBook()
    {
        hm2.get(Integer.parseInt(key));
    }
    public void searchByAuthorAndNameBook()
    {
       hm2.get(key);
    }        
}